﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="accountAanmaak.aspx.cs" Inherits="cms_account_accountAanmaak" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr><td>Voornaam: </td><td><asp:TextBox ID="tbFirstName" runat="server"></asp:TextBox></td></tr>
            <tr><td>Tussenvoegsel: </td><td><asp:TextBox ID="tbTussenvoegsel" runat="server"></asp:TextBox></td></tr>
            <tr><td>Achternaam: </td><td><asp:TextBox ID="tbAchternaam" runat="server"></asp:TextBox></td></tr>
            <tr><td>Gebruikersnaam: </td><td><asp:TextBox ID="tbGebruikersnaam" runat="server" AutoPostBack="true" OnTextChanged="tbGebruikersnaam_TextChanged"></asp:TextBox></td><td><asp:Label ID="lblGebruikersnaam" runat="server" Text=""></asp:Label></td></tr>
            
            <tr valign="top"><td>Wachtwoord: </td><td><asp:TextBox ID="tbWachtwoord" TextMode="password" runat="server"></asp:TextBox></td><td>
                <asp:RegularExpressionValidator ID="revWachtwoord" runat="server" ControlToValidate="tbWachtwoord" ErrorMessage="Min 8 karakters, max 12 karakters, min een letter, min een cijfer" ValidationExpression="(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{8,12})$"></asp:RegularExpressionValidator></td></tr>
            
            <tr><td>Herhaal wachtwoord: </td><td><asp:TextBox ID="tbWachtwoord2" TextMode="password" runat="server"></asp:TextBox></td></tr>
            <tr><td>Geboortedatum: </td><td><asp:TextBox ID="tbGeboortedatum" runat="server"></asp:TextBox></td></tr>
            <tr><td>Straatnaam: </td><td><asp:TextBox ID="tbStraatnaam" runat="server"></asp:TextBox></td></tr>
            <tr><td>Huisnummer: </td><td><asp:TextBox ID="tbHuisnummer" runat="server"></asp:TextBox></td></tr>
            <tr><td>Postcode: </td><td><asp:TextBox ID="tbPostcode" runat="server"></asp:TextBox></td></tr>
            <tr><td>Geslacht: </td><td> 
                <asp:DropDownList ID="ddGeslacht" runat="server">
                    <asp:ListItem>m</asp:ListItem>
                    <asp:ListItem>v</asp:ListItem>
                </asp:DropDownList> </td></tr>
            <tr><td>Taal: </td><td> <asp:DropDownList ID="ddTaal" runat="server" DataSourceID="dsTaal" DataTextField="naam" DataValueField="taalid"></asp:DropDownList> </td></tr>
            <tr><td>Nieuwsbrief: </td><td> 
                <asp:DropDownList ID="ddNieuwsbrief" runat="server">
                    <asp:ListItem>ja</asp:ListItem>
                    <asp:ListItem>nee</asp:ListItem>
                </asp:DropDownList></td></tr>
            <tr><td>Abonnement: </td><td> <asp:DropDownList ID="ddAbonnement" runat="server" DataSourceID="dsAbonnement" DataTextField="abbonementnaam" DataValueField="abbonementnaam"></asp:DropDownList> </td></tr>
        </table>
        <asp:Button ID="btnSubmit" runat="server" Text="Registreren" OnClick="btnSubmit_Click" />
    </div>
    </form>
</body>
<asp:EntityDataSource ID="dsTaal" runat="server" ConnectionString="name=debioscoopEntities" DefaultContainerName="debioscoopEntities" EnableFlattening="False" EntitySetName="languages" EntityTypeFilter="language" Select="it.[taalid], it.[naam]">
</asp:EntityDataSource>
<asp:EntityDataSource ID="dsAbonnement" runat="server" ConnectionString="name=debioscoopEntities" DefaultContainerName="debioscoopEntities" EnableFlattening="False" EntitySetName="abbonements" Select="it.[abbonementnaam]">
</asp:EntityDataSource>
</html>
